package display;

import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Toolkit;

import javax.swing.ImageIcon;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;

import option.Data;



public class Help extends JDialog {
    Help(){
        /*设置图标*/
        this.setIconImage(new ImageIcon("src/image/HelpIcon.jpg").getImage());
        this.setTitle("帮助");
        this.setSize(550,400);
        this.setLocationRelativeTo(null);
        this.setResizable(false);
        this.setFont(new Font("微软雅黑",Font.PLAIN+Font.BOLD,20));
        
     
       

        JPanel panel=new JPanel() {
            @Override
            public void paintComponent(Graphics g){
                g.drawImage( Toolkit.getDefaultToolkit().getImage( "src/image/menubar.jpg"),0,0,550,1000,this);
            }

        };/*创建一个容器*/
        panel.setBackground(new Color(201,226,252));
        panel.setOpaque(true);
        Font font=new Font("楷体",Font.PLAIN+Font.BOLD,23);
        String strings[]={"                               ",
                "           雷诀八条            ",
                "第一条：基本定式不要忘，现场推理真够呛。",
                "第二条：鼠标点击不要快，稳定节奏把空开。",
                "第三条：顺手标雷不要惯，积累下来记录悬。",
                "第四条：无从下手不要愣，就近猜雷把心横。",
                "第五条：遇到猜雷不要怕，爆了脸上不留疤。",
                "第六条：猜雷猜错不要悔，哭天抢地也白费。",
                "第七条：碰上好局不要慌，紧盯局部慢扩张。",
                "第八条：痛失好局不要恨，既然有缘定有份。"
        };
        for(int i=0;i<10;i++){

            JLabel lable=new JLabel();
            lable.setFont(font);
            if(i==1)lable.setFont(new Font("楷体",Font.BOLD,23));
            lable.setText(strings[i]);
            panel.add(lable);
        }
        this.add(panel);
       
    }
}
